﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Study04
{
    class Program
    {
        static void Main(string[] args)
        {
            Queue queue = new Queue();
            queue.Enqueue("三色:");
            queue.Enqueue("小红");
            queue.Enqueue("小绿");
            queue.Enqueue("小蓝");
            
            var qu = queue.ToArray();
            foreach (var item in qu)
            {
                Console.WriteLine(item);
            }
            Console.WriteLine();
            var enumerator = queue.GetEnumerator();
            while (enumerator.MoveNext())
            {
                Console.WriteLine(enumerator.Current);
            }



        }

    }
}
